//Source file: D:\\test\\com\\ce\\pms\\customer\\model\\OrganizationDO.java

package com.ce.pms.customer.model;

import javax.persistence.*;
import com.ce.pms.common.model.SysInfo;
import com.ce.pms.common.model.SysrefcodeDO;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:组织 关系表：CS_ORGANIZATION
 * @author Adama Yue
 */
@Entity
@Table(name="CS_ORGANIZATION")
@PrimaryKeyJoinColumn(name="ORGANIZATION_ID")
public class OrganizationDO extends ParticipantDO implements IDomainObject{

	public static final String ORG_DEVELOPER = "001";
	public static final String ORG_DESIGNER = "002";
	public static final String ORG_CONTACTOR = "003";
	public static final String ORG_INSPECTOR = "004";
	public static final String ORG_POLICE_BREANU= "005";
	public static final String ORG_TERRITORY_AUTHORITY = "006";
	public static final String ORG_RESIDENT_COMMITY = "007";
	public static final String ORG_OTHER = "008";

	@Column(name="ADDRESS",nullable=true,insertable=true,updatable=true,length=255)
	private String address;//企业地址
	@Column(name="ZIP",nullable=true,insertable=true,updatable=true,length=30)
	private String zipcode;//邮编
	@Column(name="LINKMAN",nullable=true,insertable=true,updatable=true,length=80)
	private String contactor;//联系人
	/**
	 * 001开发商 002设计单位 003施工单位 004监理单位 005派出所 006街道办 007居委会 008其它
	 */
	@ManyToOne
	@JoinColumn(name="SYS_REF_ID",nullable=true,insertable=true,updatable=true)
	private SysrefcodeDO organizationType;//组织类型

	public OrganizationDO() {
	}
	/**
	 * mini constructor
	 * @param participantName 参与人姓名
	 * @param sysInfo 系统信息（创建，修改信息）
	 * @param organizationType 组织类型
	 */
	public OrganizationDO(String participantName, SysInfo sysInfo, SysrefcodeDO organizationType) {
		super(participantName, sysInfo);
		this.organizationType = organizationType;
	}

	/**************************************************
	 * Accessors and Modifiers
	 **************************************************/
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getContactor() {
		return contactor;
	}
	public void setContactor(String contactor) {
		this.contactor = contactor;
	}
	public SysrefcodeDO getOrganizationType() {
		return organizationType;
	}
	public void setOrganizationType(SysrefcodeDO organizationType) {
		this.organizationType = organizationType;
	}
	public String getZipcode() {
		return zipcode;
	}
	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}





}
